﻿using SqlSugar;

namespace OnHook.Domain.Entities
{
    /// <summary>
    /// 订单明细
    /// </summary>
	[SugarTable("t_order_detail" ,TableDescription = "订单明细")]
    public class OrderDetail :AllBaseEntity
    {
        ///<summary>
        /// 商品主键
        ///</summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "id", ColumnDescription = "主键Id")]
        public long Id { get; set; } = 0;

        /// <summary>
        /// 订单Id
        /// </summary>
		[SugarColumn(ColumnName = "order_id", ColumnDescription = "订单Id")]
        public long OrderId { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
		[SugarColumn(ColumnName = "goods_id", ColumnDescription = "商品Id")]
        public long GoodsId { get; set; }

        /// <summary>
        /// 产品
        /// </summary>
		[SugarColumn(ColumnName = "product_id", ColumnDescription = "产品")]
        public long ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
		[SugarColumn(ColumnName = "product_name", ColumnDescription = "产品名称")]
        public string ProductName { get; set; } = string.Empty;
        ///<summary>
		/// 商品原价（单位：分）
		///</summary>
		[SugarColumn(ColumnName = "origin_price", ColumnDescription = "商品原价（单位：分）")]
        public int OriginPrice { get; set; } = 0;
        /// <summary>
        /// 排序值
        /// </summary>
        [SugarColumn(ColumnName = "sort_num", ColumnDescription = "排序值")]
        public int SortNum { get; set; } = 0;

        /// <summary>
        /// 增量时间（单位：分钟）
        /// </summary>
        [SugarColumn(ColumnName = "incre_minutes", ColumnDescription = "增量时间（单位：分钟）")]
        public int IncreMinutes { get; set; } = 0;
    }
}
